<?php



class SpecialEventMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.SpecialEventMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('conf_specialevent');
		$tMap->setPhpName('SpecialEvent');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('CONFERENCE_ID', 'ConferenceId', 'int', CreoleTypes::INTEGER, 'conf_conference', 'ID', true, null);

		$tMap->addColumn('SPECIAL_CODE', 'SpecialCode', 'string', CreoleTypes::VARCHAR, true, 10);

		$tMap->addColumn('NAME', 'Name', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('DESCRIPTION', 'Description', 'string', CreoleTypes::LONGVARCHAR, true, null);

		$tMap->addColumn('TIME_START', 'TimeStart', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('TIME_END', 'TimeEnd', 'int', CreoleTypes::TIMESTAMP, true, null);

		$tMap->addColumn('FEE', 'Fee', 'double', CreoleTypes::DOUBLE, false, null);

		$tMap->addColumn('MAX_ENROLL', 'MaxEnroll', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CUR_ENROLL', 'CurEnroll', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 